package com.dream.dao;

import com.dream.pojo.Dormitory;

import java.util.List;

public interface DormitoryDao {
    List<Dormitory> list(String dormitoryId, long pageIndex, long pageSize);

    Dormitory findById(String dormitoryId);

    long totalCount(String dormitoryId);

    int add(Dormitory dormitory);

    int update(Dormitory dormitoryId);

    int deleteById(String dormitoryId);

    List<Dormitory> list();
}
